// users模型，包含一下字段
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const UserSchema = new Schema({
  uid: {
    type: String
  },
  email: {
    type: String,
  },
  password: {
    type: String
  },
  nickname: {
    type: String,
    unique: false,
    required: false
  },
  age: {
    type: Number
  },
  sex: {
    type: Number
  },
  phone: {
    type: String
  }
})

module.exports = {
  Users: mongoose.model('users', UserSchema)
}